
public final class TrackedTask {
	
		
    // the Bicycle class has three fields
    public int end_time;
    public int start_time;
    public int total_time;
    public String task_name;
    
    private int id;
    private static int nTrackedTasks = 0;
	
    // the Bicycle class has one constructor
    public TrackedTask(int startCadence, int startSpeed, int startGear) {
    	end_time   = startGear;
    	start_time = startCadence;
    	total_time = startSpeed;
        setId(++nTrackedTasks);
    }
	
    // the Bicycle class has four methods
    public void setCadence(int newValue) {
        cadence = newValue;
    }
	
    public void setGear(int newValue) {
        gear = newValue;
    }
	
    public void applyBrake(int decrement) {
        speed -= decrement;
    }
	
    public void speedUp(int increment) {
        speed += increment;
    }

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}
		
}
